/*
 * Copyright 2023 NXP
 * SPDX-License-Identifier: MIT
 */

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"


void setup_scr_screen(lv_ui *ui){

	//Write codes screen
	ui->screen = lv_obj_create(NULL, NULL);

	//Write style LV_OBJ_PART_MAIN for screen
	static lv_style_t style_screen_main;
	lv_style_reset(&style_screen_main);

	//Write style state: LV_STATE_DEFAULT for style_screen_main
	lv_style_set_bg_color(&style_screen_main, LV_STATE_DEFAULT, lv_color_make(0xb2, 0xf5, 0xdf));
	lv_style_set_bg_opa(&style_screen_main, LV_STATE_DEFAULT, 255);
	lv_obj_add_style(ui->screen, LV_OBJ_PART_MAIN, &style_screen_main);

	//Write codes screen_label_1
	ui->screen_label_1 = lv_label_create(ui->screen, NULL);
	lv_label_set_text(ui->screen_label_1, "2023年11月14日星期二 ");
	lv_label_set_long_mode(ui->screen_label_1, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->screen_label_1, LV_LABEL_ALIGN_CENTER);

	//Write style LV_LABEL_PART_MAIN for screen_label_1
	static lv_style_t style_screen_label_1_main;
	lv_style_reset(&style_screen_label_1_main);

	//Write style state: LV_STATE_DEFAULT for style_screen_label_1_main
	lv_style_set_radius(&style_screen_label_1_main, LV_STATE_DEFAULT, 0);
	lv_style_set_bg_color(&style_screen_label_1_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_screen_label_1_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_screen_label_1_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen_label_1_main, LV_STATE_DEFAULT, 0);
	lv_style_set_text_color(&style_screen_label_1_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen_label_1_main, LV_STATE_DEFAULT, &lv_font_simsun_15);
	lv_style_set_text_letter_space(&style_screen_label_1_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_screen_label_1_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_screen_label_1_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_screen_label_1_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_screen_label_1_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->screen_label_1, LV_LABEL_PART_MAIN, &style_screen_label_1_main);
	lv_obj_set_pos(ui->screen_label_1, 21, 49);
	lv_obj_set_size(ui->screen_label_1, 198, 0);

	//Write codes screen_label_2
	ui->screen_label_2 = lv_label_create(ui->screen, NULL);
	lv_label_set_text(ui->screen_label_2, "19:08");
	lv_label_set_long_mode(ui->screen_label_2, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->screen_label_2, LV_LABEL_ALIGN_CENTER);

	//Write style LV_LABEL_PART_MAIN for screen_label_2
	static lv_style_t style_screen_label_2_main;
	lv_style_reset(&style_screen_label_2_main);

	//Write style state: LV_STATE_DEFAULT for style_screen_label_2_main
	lv_style_set_radius(&style_screen_label_2_main, LV_STATE_DEFAULT, 0);
	lv_style_set_bg_color(&style_screen_label_2_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_screen_label_2_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_screen_label_2_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen_label_2_main, LV_STATE_DEFAULT, 0);
	lv_style_set_text_color(&style_screen_label_2_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen_label_2_main, LV_STATE_DEFAULT, &lv_font_simsun_55);
	lv_style_set_text_letter_space(&style_screen_label_2_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_screen_label_2_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_screen_label_2_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_screen_label_2_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_screen_label_2_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->screen_label_2, LV_LABEL_PART_MAIN, &style_screen_label_2_main);
	lv_obj_set_pos(ui->screen_label_2, 43.5, 75);
	lv_obj_set_size(ui->screen_label_2, 153, 0);

	//Write codes screen_img_1
	ui->screen_img_1 = lv_img_create(ui->screen, NULL);

	//Write style LV_IMG_PART_MAIN for screen_img_1
	static lv_style_t style_screen_img_1_main;
	lv_style_reset(&style_screen_img_1_main);

	//Write style state: LV_STATE_DEFAULT for style_screen_img_1_main
	lv_style_set_image_recolor(&style_screen_img_1_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_image_recolor_opa(&style_screen_img_1_main, LV_STATE_DEFAULT, 0);
	lv_style_set_image_opa(&style_screen_img_1_main, LV_STATE_DEFAULT, 255);
	lv_obj_add_style(ui->screen_img_1, LV_IMG_PART_MAIN, &style_screen_img_1_main);
	lv_obj_set_pos(ui->screen_img_1, 219, 5);
	lv_obj_set_size(ui->screen_img_1, 15, 10);
	lv_obj_set_click(ui->screen_img_1, true);
	lv_img_set_src(ui->screen_img_1,&_dian_alpha_15x10);
	lv_img_set_pivot(ui->screen_img_1, 0,0);
	lv_img_set_angle(ui->screen_img_1, 0);

	//Write codes screen_img_2
	ui->screen_img_2 = lv_img_create(ui->screen, NULL);

	//Write style LV_IMG_PART_MAIN for screen_img_2
	static lv_style_t style_screen_img_2_main;
	lv_style_reset(&style_screen_img_2_main);

	//Write style state: LV_STATE_DEFAULT for style_screen_img_2_main
	lv_style_set_image_recolor(&style_screen_img_2_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_image_recolor_opa(&style_screen_img_2_main, LV_STATE_DEFAULT, 0);
	lv_style_set_image_opa(&style_screen_img_2_main, LV_STATE_DEFAULT, 255);
	lv_obj_add_style(ui->screen_img_2, LV_IMG_PART_MAIN, &style_screen_img_2_main);
	lv_obj_set_pos(ui->screen_img_2, 0, 0);
	lv_obj_set_size(ui->screen_img_2, 20, 20);
	lv_obj_set_click(ui->screen_img_2, true);
	lv_img_set_src(ui->screen_img_2,&_wifi_alpha_20x20);
	lv_img_set_pivot(ui->screen_img_2, 0,0);
	lv_img_set_angle(ui->screen_img_2, 0);

//	//Write codes screen_img_3
//	ui->screen_img_3 = lv_img_create(ui->screen, NULL);

//	//Write style LV_IMG_PART_MAIN for screen_img_3
//	static lv_style_t style_screen_img_3_main;
//	lv_style_reset(&style_screen_img_3_main);

//	//Write style state: LV_STATE_DEFAULT for style_screen_img_3_main
//	lv_style_set_image_recolor(&style_screen_img_3_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
//	lv_style_set_image_recolor_opa(&style_screen_img_3_main, LV_STATE_DEFAULT, 0);
//	lv_style_set_image_opa(&style_screen_img_3_main, LV_STATE_DEFAULT, 255);
//	lv_obj_add_style(ui->screen_img_3, LV_IMG_PART_MAIN, &style_screen_img_3_main);
//	lv_obj_set_pos(ui->screen_img_3, 0, 0);
//	lv_obj_set_size(ui->screen_img_3, 20, 20);
//	lv_obj_set_click(ui->screen_img_3, true);
//	lv_img_set_src(ui->screen_img_3,&_wifi_off_alpha_20x20);
//	lv_img_set_pivot(ui->screen_img_3, 0,0);
//	lv_img_set_angle(ui->screen_img_3, 0);

	//Write codes screen_img_7
	ui->screen_img_7 = lv_img_create(ui->screen, NULL);

	//Write style LV_IMG_PART_MAIN for screen_img_7
	static lv_style_t style_screen_img_7_main;
	lv_style_reset(&style_screen_img_7_main);

	//Write style state: LV_STATE_DEFAULT for style_screen_img_7_main
	lv_style_set_image_recolor(&style_screen_img_7_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_image_recolor_opa(&style_screen_img_7_main, LV_STATE_DEFAULT, 0);
	lv_style_set_image_opa(&style_screen_img_7_main, LV_STATE_DEFAULT, 255);
	lv_obj_add_style(ui->screen_img_7, LV_IMG_PART_MAIN, &style_screen_img_7_main);
	lv_obj_set_pos(ui->screen_img_7, 112.5, 4);
	lv_obj_set_size(ui->screen_img_7, 15, 15);
	lv_obj_set_click(ui->screen_img_7, true);
	lv_img_set_src(ui->screen_img_7,&_home_alpha_15x15);
	lv_img_set_pivot(ui->screen_img_7, 0,0);
	lv_img_set_angle(ui->screen_img_7, 0);

	//Write codes screen_label_5
	ui->screen_label_5 = lv_label_create(ui->screen, NULL);
	lv_label_set_text(ui->screen_label_5, "27.1");
	lv_label_set_long_mode(ui->screen_label_5, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->screen_label_5, LV_LABEL_ALIGN_LEFT);

	//Write style LV_LABEL_PART_MAIN for screen_label_5
	static lv_style_t style_screen_label_5_main;
	lv_style_reset(&style_screen_label_5_main);

	//Write style state: LV_STATE_DEFAULT for style_screen_label_5_main
	lv_style_set_radius(&style_screen_label_5_main, LV_STATE_DEFAULT, 0);
	lv_style_set_bg_color(&style_screen_label_5_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_screen_label_5_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_screen_label_5_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen_label_5_main, LV_STATE_DEFAULT, 0);
	lv_style_set_text_color(&style_screen_label_5_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen_label_5_main, LV_STATE_DEFAULT, &lv_font_simsun_30);
	lv_style_set_text_letter_space(&style_screen_label_5_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_screen_label_5_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_screen_label_5_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_screen_label_5_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_screen_label_5_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->screen_label_5, LV_LABEL_PART_MAIN, &style_screen_label_5_main);
	lv_obj_set_pos(ui->screen_label_5, 18, 229);
	lv_obj_set_size(ui->screen_label_5, 122, 0);

	//Write codes screen_label_6
	ui->screen_label_6 = lv_label_create(ui->screen, NULL);
	lv_label_set_text(ui->screen_label_6, "65%");
	lv_label_set_long_mode(ui->screen_label_6, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->screen_label_6, LV_LABEL_ALIGN_CENTER);

	//Write style LV_LABEL_PART_MAIN for screen_label_6
	static lv_style_t style_screen_label_6_main;
	lv_style_reset(&style_screen_label_6_main);

	//Write style state: LV_STATE_DEFAULT for style_screen_label_6_main
	lv_style_set_radius(&style_screen_label_6_main, LV_STATE_DEFAULT, 0);
	lv_style_set_bg_color(&style_screen_label_6_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_screen_label_6_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_screen_label_6_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen_label_6_main, LV_STATE_DEFAULT, 0);
	lv_style_set_text_color(&style_screen_label_6_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen_label_6_main, LV_STATE_DEFAULT, &lv_font_simsun_30);
	lv_style_set_text_letter_space(&style_screen_label_6_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_screen_label_6_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_screen_label_6_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_screen_label_6_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_screen_label_6_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->screen_label_6, LV_LABEL_PART_MAIN, &style_screen_label_6_main);
	lv_obj_set_pos(ui->screen_label_6, 160, 230);
	lv_obj_set_size(ui->screen_label_6, 65, 0);

	//Write codes screen_img_8
	ui->screen_img_8 = lv_img_create(ui->screen, NULL);

	//Write style LV_IMG_PART_MAIN for screen_img_8
	static lv_style_t style_screen_img_8_main;
	lv_style_reset(&style_screen_img_8_main);

	//Write style state: LV_STATE_DEFAULT for style_screen_img_8_main
	lv_style_set_image_recolor(&style_screen_img_8_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_image_recolor_opa(&style_screen_img_8_main, LV_STATE_DEFAULT, 0);
	lv_style_set_image_opa(&style_screen_img_8_main, LV_STATE_DEFAULT, 255);
	lv_obj_add_style(ui->screen_img_8, LV_IMG_PART_MAIN, &style_screen_img_8_main);
	lv_obj_set_pos(ui->screen_img_8, 24, 163);
	lv_obj_set_size(ui->screen_img_8, 50, 50);
	lv_obj_set_click(ui->screen_img_8, true);
	lv_img_set_src(ui->screen_img_8,&_wen_alpha_50x50);
	lv_img_set_pivot(ui->screen_img_8, 0,0);
	lv_img_set_angle(ui->screen_img_8, 0);

	//Write codes screen_img_9
	ui->screen_img_9 = lv_img_create(ui->screen, NULL);

	//Write style LV_IMG_PART_MAIN for screen_img_9
	static lv_style_t style_screen_img_9_main;
	lv_style_reset(&style_screen_img_9_main);

	//Write style state: LV_STATE_DEFAULT for style_screen_img_9_main
	lv_style_set_image_recolor(&style_screen_img_9_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_image_recolor_opa(&style_screen_img_9_main, LV_STATE_DEFAULT, 0);
	lv_style_set_image_opa(&style_screen_img_9_main, LV_STATE_DEFAULT, 255);
	lv_obj_add_style(ui->screen_img_9, LV_IMG_PART_MAIN, &style_screen_img_9_main);
	lv_obj_set_pos(ui->screen_img_9, 163, 163);
	lv_obj_set_size(ui->screen_img_9, 50, 50);
	lv_obj_set_click(ui->screen_img_9, true);
	lv_img_set_src(ui->screen_img_9,&_shidu_alpha_50x50);
	lv_img_set_pivot(ui->screen_img_9, 0,0);
	lv_img_set_angle(ui->screen_img_9, 0);

	//Write codes screen_label_7
	ui->screen_label_7 = lv_label_create(ui->screen, NULL);
	lv_label_set_text(ui->screen_label_7, "舒适 ");
	lv_label_set_long_mode(ui->screen_label_7, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->screen_label_7, LV_LABEL_ALIGN_CENTER);

	//Write style LV_LABEL_PART_MAIN for screen_label_7
	static lv_style_t style_screen_label_7_main;
	lv_style_reset(&style_screen_label_7_main);

	//Write style state: LV_STATE_DEFAULT for style_screen_label_7_main
	lv_style_set_radius(&style_screen_label_7_main, LV_STATE_DEFAULT, 10);
	lv_style_set_bg_color(&style_screen_label_7_main, LV_STATE_DEFAULT, lv_color_make(0x54, 0xf0, 0x51));
	lv_style_set_bg_grad_color(&style_screen_label_7_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_screen_label_7_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen_label_7_main, LV_STATE_DEFAULT, 255);
	lv_style_set_text_color(&style_screen_label_7_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen_label_7_main, LV_STATE_DEFAULT, &lv_font_simsun_30);
	lv_style_set_text_letter_space(&style_screen_label_7_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_screen_label_7_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_screen_label_7_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_screen_label_7_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_screen_label_7_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->screen_label_7, LV_LABEL_PART_MAIN, &style_screen_label_7_main);
	lv_obj_set_pos(ui->screen_label_7, 14, 275);
	lv_obj_set_size(ui->screen_label_7, 72, 0);

	//Write codes screen_label_8
	ui->screen_label_8 = lv_label_create(ui->screen, NULL);
	lv_label_set_text(ui->screen_label_8, "湿润 ");
	lv_label_set_long_mode(ui->screen_label_8, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->screen_label_8, LV_LABEL_ALIGN_CENTER);

	//Write style LV_LABEL_PART_MAIN for screen_label_8
	static lv_style_t style_screen_label_8_main;
	lv_style_reset(&style_screen_label_8_main);

	//Write style state: LV_STATE_DEFAULT for style_screen_label_8_main
	lv_style_set_radius(&style_screen_label_8_main, LV_STATE_DEFAULT, 10);
	lv_style_set_bg_color(&style_screen_label_8_main, LV_STATE_DEFAULT, lv_color_make(0x54, 0xf0, 0x51));
	lv_style_set_bg_grad_color(&style_screen_label_8_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_screen_label_8_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_screen_label_8_main, LV_STATE_DEFAULT, 255);
	lv_style_set_text_color(&style_screen_label_8_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_screen_label_8_main, LV_STATE_DEFAULT, &lv_font_simsun_30);
	lv_style_set_text_letter_space(&style_screen_label_8_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_screen_label_8_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_screen_label_8_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_screen_label_8_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_screen_label_8_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->screen_label_8, LV_LABEL_PART_MAIN, &style_screen_label_8_main);
	lv_obj_set_pos(ui->screen_label_8, 152, 275);
	lv_obj_set_size(ui->screen_label_8, 72, 0);
}